package com.ruoyi.patient.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.patient.entity.explain.ExplainRsp;
import com.ruoyi.patient.service.PatientExplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 温馨提示控制类
 *
 * @author ZDL
 */

@RestController
@RequestMapping("/appPatient/appPatientExplain")
public class PatientExplainController {

    @Autowired
    private PatientExplainService explainService;

    @GetMapping("/getProDetail")
    public AjaxResult getProDetail() {
        try {
            ExplainRsp proDetail = explainService.getProDetail();
            return AjaxResult.success(proDetail);
        }catch (Exception e){
            return AjaxResult.error(e.getMessage());
        }

    }
}
